package com.chaoxin.lovehelp.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.chaoxin.lovehelp.common.utils.PageUtils;
import com.chaoxin.lovehelp.entity.ActivityEntity;
import com.chaoxin.lovehelp.common.enums.vo.activityEditVo;
import com.chaoxin.lovehelp.common.enums.vo.activityRecipientsVo;

import javax.servlet.http.HttpServletRequest;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.text.ParseException;
import java.util.List;
import java.util.Map;

/**
 * 
 *
 * @author honghu
 * @email 3027708213@qq.com
 * @date 2024-02-04 22:13:14
 */
public interface ActivityService extends IService<ActivityEntity> {

    //获取列表
    PageUtils queryPage(Map<String, Object> params) throws ParseException;
    //删除
    void removeIds(List<Integer> list);
    //保存
    void saveVo(activityEditVo vo);
    //修改
    void updateVo(activityEditVo vo);
    //初始化编辑窗口
    activityEditVo getEditVo(Integer id);

    //单个活动的受助者信息
    activityRecipientsVo getRecipientsOfActivity(HttpServletRequest request,Map<String, Object> params);
    //会员活动
    PageUtils getFellowActivity(HttpServletRequest request,Map<String, Object> params) throws ParseException;
    //导出会员活动
    void exportFellowsActivity(Map<String, Object> params) throws ParseException, UnsupportedEncodingException;
    //导出单个活动的受助者信息
    void exportRecipientsActivity(Integer id) throws IOException;
    //获取总志愿时长
    String getAllActivityTime(Map<String, Object> params) throws ParseException;
    //获取会员活动时长
    String getFellowActivityTime(Map<String, Object> params) throws ParseException;
}

